package com.hbnu.pojo;

import java.math.BigDecimal;
import java.sql.Timestamp;

    public class Product {
        private int id;
        private String name;
        private String description;
        private BigDecimal price;
        private int stock;
        private String category;
        private Timestamp createdTime;

        public Product() {}

        public Product(String name, String description, BigDecimal price, int stock, String category) {
            this.name = name;
            this.description = description;
            this.price = price;
            this.stock = stock;
            this.category = category;
        }


        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public BigDecimal getPrice() {
            return price;
        }

        public void setPrice(BigDecimal price) {
            this.price = price;
        }

        public int getStock() {
            return stock;
        }

        public void setStock(int stock) {
            this.stock = stock;
        }

        public String getCategory() {
            return category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        public Timestamp getCreatedTime() {
            return createdTime;
        }

        public void setCreatedTime(Timestamp createdTime) {
            this.createdTime = createdTime;
        }
    }

